From a292cd3903b1cc59bbd05bbc02dd4ea2d5eeea46 Mon Sep 17 00:00:00 2001 From: Jyrki Gadinger Date: Tue, 25 Feb 2025 09:39:33 +0100 Subject: [PATCH] do not display encrypt action for external folders Signed-off-by: Jyrki Gadinger --- src/gui/accountsettings.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp index 98517452f..5d352bdba 100644 --- a/src/gui/accountsettings.cpp +++ b/src/gui/accountsettings.cpp @@ -601,8 +601,9 @@ void AccountSettings::slotSubfolderContextMenuRequested(const QModelIndex& index const auto isEncrypted = info->isEncrypted(); const auto isParentEncrypted = _model->isAnyAncestorEncrypted(index); const auto isTopFolder = index.parent().isValid() && !index.parent().parent().isValid(); + const auto isExternal = info->_isExternal; - if (!isEncrypted && !isParentEncrypted && isTopFolder) { + if (!isEncrypted && !isParentEncrypted && !isExternal && isTopFolder) { ac = menu.addAction(tr("Encrypt")); connect(ac, &QAction::triggered, [this, info] { slotMarkSubfolderEncrypted(info); }); } else { -- 2.30.2